package com.xiaoke.controller;

import com.xiaoke.annotation.Log;
import com.xiaoke.domain.R;
import com.xiaoke.domain.entity.TestEntity;
import com.xiaoke.enums.BusinessType;
import org.springframework.web.bind.annotation.*;

/**
 * @Author xiaoke
 * @Description 测试控制器
 * @Date 2023/7/23 18:36
 */
@RestController
@RequestMapping("/api")
public class TestController {

    @Log(title = "测试日志模块",businessType = BusinessType.OTHER)
    @PostMapping ("demo")
    public R<TestEntity> demo(@RequestBody TestEntity testEntity) throws InterruptedException {
        return R.ok(testEntity);
    }
}
